/**
 * 
 */
package org.picWeb.util.dialect;

/**
 * @author zjm
 *
 */
public class MySQLDialect extends Dialect {

	@Override
	public String getLimitString(String sql, int offset, int limit) {
		StringBuilder _sql = new StringBuilder(sql.length() + 20).append(sql).append(" limit ");
		if(offset>0){
			_sql.append(offset).append(", ");
		}
		_sql.append(limit);
		return _sql.toString();
	}

}
